<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
    <div class="winui-toolbar">
        <div class="winui-tool">
            <button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
            <button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1590913527206"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
        </div>
    </div>
    <div style="margin:auto 10px;">
        <table id="messageTable" lay-filter="messageTable"></table>
        <script type="text/html" id="tableBar">
			{{# if(d.editRow == 1) { }}
				{{# if(auth('1591105857329')) { }}
					<a class="layui-btn layui-btn-xs" lay-event="subApproval">提交审批</a>
				{{# } }}
				{{# if(auth('1590913527206')) { }}
					<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
				{{# } }}
				{{# if(auth('1590926876459')) { }}
					<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete"><language showName="com.skyeye.deleteBtn"></language></a>
				{{# } }}
			{{# } }}
			{{# if(d.editRow == 2) { }}
				{{# if(auth('1696246760629')) { }}
					<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="revoke">撤销</a>
				{{# } }}
			{{# } }}

            {{# if (d.state == 'pass' || d.state == 'partiallyCompleted') { }}
                {{# if (d.machinOrderState == 2 ||d.machinOrderState == 3) { }}
                    {{# if (auth('1720795842911')) { }}
                        <a class="layui-btn layui-btn-xs" lay-event="turnConversionProcessingOrder">转加工单</a>
                    {{# } }}
                {{# } }}
                {{# if (d.outState == 2 ||d.outState == 3) { }}
                    {{# if (auth('1721215714124')) { }}
                        <a class="layui-btn layui-btn-xs" lay-event="turnEntireOrderToOutsourcing">转整单委外</a>
                    {{# } }}
                {{# } }}
            {{# } }}
        </script>
    </div>
    <script src="../../assets/lib/layui/layui.js"></script>
    <script src="../../assets/lib/layui/custom.js"></script>
    <script type="text/javascript">
        layui.config({base: '../../js/erpProduction/'}).use('erpProductionList');
    </script>
</body>
</html>